﻿<MudPopoverProvider />

<MudDatePicker id="picker" @ref="_picker" Label="With action buttons" PickerVariant="PickerVariant.Static" @bind-Date="_date">
    <PickerActions>
        <MudButton Class="mr-auto align-self-start" OnClick="@(() => _picker.ClearAsync())">Clear</MudButton>
        <MudButton OnClick="@(() => _picker.CloseAsync(false))">Cancel</MudButton>
        <MudButton Color="Color.Primary" OnClick="@(() => _picker.CloseAsync())">Ok</MudButton>
    </PickerActions>
</MudDatePicker>

@code {
    private MudDatePicker _picker = null!;
    private DateTime? _date = DateTime.Today;
}